package com.supergo.manager.feign;

import com.supergo.pojo.Itemcat;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Classname ApiItemCatFeign
 * @Description TODO
 * @Date 2020/10/26 22:32
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@FeignClient("supergo-manager")
public interface ApiItemCatFeign {

    @RequestMapping("/cat/category")
    public List<Itemcat> getItemCatList();

    @RequestMapping("/itemcat/category/{categoryId}")
    public Itemcat getItemCatById(@PathVariable Long categoryId);

}
